package com.zzq.controller;

import com.zzq.domain.search.ShootAddressSearchParamet;
import com.zzq.result.SmileResult;
import com.zzq.service.ClientShootAdressService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/client/shoot/adress")
@RestController
@Api(value = "客户端拍摄地址接口",tags = {"客户端拍摄地址接口"})
public class ClientShootAdressController {


    @Autowired
    ClientShootAdressService clientShootAdressService;

    /**
     * 热门地址列表
     * 单个地址搜索
     * @param searchParamet
     * @return
     */
    @PostMapping("/list")
    @ApiOperation("拍摄地址列表")
    public SmileResult hotAddressList(@RequestBody ShootAddressSearchParamet searchParamet){
        SmileResult hotAddress = clientShootAdressService.getHotAddress(searchParamet);
        return hotAddress;
    }







}
